<template>
  <div style="width: 450px; padding:0 20px">
    <el-row :gutter="10">
      <el-col :span="5">是否开启：</el-col>
      <el-col :span="19">
        <el-switch v-model="transparency.enabled"></el-switch>
      </el-col>
    </el-row>
    <el-row :gutter="10">
      <el-col :span="5">地球正面透明度：</el-col>
      <el-col :span="19">
        <el-slider v-model="transparency.frontFaceAlpha" :step="0.01" :max="1"></el-slider>
      </el-col>
    </el-row>
    <el-row :gutter="10">
      <el-col :span="5">地球背面透明度：</el-col>
      <el-col :span="19">
        <el-slider v-model="transparency.backFaceAlpha" :step="0.01" :max="1"></el-slider>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";
const transparency = ref(viewer.scene.globe.translucency);
</script>

<style lang="scss" scoped>
.el-row {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  margin: 10px 0;
}
</style>